package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GfUsersMapper;
import com.ruoyi.system.domain.GfUsers;
import com.ruoyi.system.service.IGfUsersService;

/**
 * 用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
@Service
public class GfUsersServiceImpl implements IGfUsersService 
{
    @Autowired
    private GfUsersMapper gfUsersMapper;

    /**
     * 查询用户
     * 
     * @param userId 用户主键
     * @return 用户
     */
    @Override
    public GfUsers selectGfUsersByUserId(Long userId)
    {
        return gfUsersMapper.selectGfUsersByUserId(userId);
    }

    /**
     * 查询用户列表
     * 
     * @param gfUsers 用户
     * @return 用户
     */
    @Override
    public List<GfUsers> selectGfUsersList(GfUsers gfUsers)
    {
        return gfUsersMapper.selectGfUsersList(gfUsers);
    }

    /**
     * 新增用户
     * 
     * @param gfUsers 用户
     * @return 结果
     */
    @Override
    public int insertGfUsers(GfUsers gfUsers)
    {
        return gfUsersMapper.insertGfUsers(gfUsers);
    }

    /**
     * 修改用户
     * 
     * @param gfUsers 用户
     * @return 结果
     */
    @Override
    public int updateGfUsers(GfUsers gfUsers)
    {
        return gfUsersMapper.updateGfUsers(gfUsers);
    }

    /**
     * 批量删除用户
     * 
     * @param userIds 需要删除的用户主键
     * @return 结果
     */
    @Override
    public int deleteGfUsersByUserIds(Long[] userIds)
    {
        return gfUsersMapper.deleteGfUsersByUserIds(userIds);
    }

    /**
     * 删除用户信息
     * 
     * @param userId 用户主键
     * @return 结果
     */
    @Override
    public int deleteGfUsersByUserId(Long userId)
    {
        return gfUsersMapper.deleteGfUsersByUserId(userId);
    }
}
